<template>
    <div class="gradeList">
        <TimeTable :afternoon-length="5" :length="12" :events="events1"></TimeTable>
    </div>
</template>
  
<script>
import TimeTable from '@/components/TimeTable';

export default {
    name: 'GradePage',
    components: {
        TimeTable
    },
    data() {
        return {
            msg: '课表',
            events1: [
                {
                    xq: 1,
                    title: '形势与政治',
                    class: 'sport',
                    content: '1-4节' + '/' + '社会学1班' + '/' + '5教-402室',
                    start: 1,
                    end: 4
                },
                {
                    xq: 1,
                    title: '形势与政治',
                    class: 'leisure',
                    content: '9-12节' + '<br>' + '社会学2班' + '<br>' + '5教-401室',
                    start: 9,
                    end: 12
                },
                {
                    xq: 3,
                    title: '形势与政治',
                    class: 'sport',
                    content: '5-6节' + '/' + '社会学2班' + '/' + '1教-401室',
                    start: 5,
                    end: 6
                },
                {
                    xq: 4,
                    title: '形势与政治',
                    class: 'sport',
                    content: '1-2节' + '/' + '社会学1班' + '/' + '5教-402室',
                    start: 1,
                    end: 2
                },
                {
                    xq: 4,
                    title: '形势与政治',
                    class: 'sport',
                    content: '7-8节' + '/' + '社会学1班' + '/' + '5教-402室',
                    start: 7,
                    end: 8
                },
                {
                    xq: 5,
                    title: '形势与政治',
                    class: 'sport',
                    content: '社会学1班' + '/' + '5教-402室',
                    start: 3,
                    end: 4
                },
                {
                    xq: 5,
                    title: '形势与政治',
                    class: 'sport',
                    content: '5-6节' + '/' + '社会学1班' + '/' + '5教-402室',
                    start: 5,
                    end: 6
                }
            ],
        }
    },
    methods: {
    },
    // 生命周期函数--钩子函数一般在初始化页面完成后，再对DOM节点进行相关操作
    async mounted() {
        this.$emit("transfer", this.msg);
        this.schoolId = JSON.parse(sessionStorage.getItem('info')).schoolId;
        // await this.getList()
    }
}
</script>
  
  <!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
  